package code17;

public class IncreaseDecrease {
    public static void main(String[] args) {
        int a = 1;
        System.out.println("a++=" + a++);  // 先赋值后加
        System.out.println("a=" + a);

        int b = 10;
        System.out.println("b--=" + b--);   // 先赋值后减
        System.out.println("b=" + b);

        int c = 100;
        System.out.println("++c=" + ++c);  // 先加后赋值
        System.out.println("c=" + c);

        int d = 1000;
        System.out.println("--d=" + --d);  // 先减后赋值
        System.out.println("d=" + d);
    }
}
